<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 

<html>
   <head>        
      <title>WebExamen</title>
      <link href="style.css" rel="stylesheet" type="text/css"/>
   </head>

   <body>        
      <h1 id="title">EXAMENES WEB</h1></br></br>
       
      <form id="logeo" name="logeo" method="post" action="Control">
         <input type="hidden" name="opcion" value="logeo">
         <td valign=center width=404>
            <table height=192 cellSpacing=0 cellPadding=0 width=238 align="center" background="images/cuadro.jpg" border=0>
               <tbody>
                  <tr>
                     <td height=79>&nbsp;</td>
                     <td height=79><div align="center"><img height=59 src="images/imagenacceso.png" width=65 align="center"></div></td>
                     <td height=79>&nbsp;</td>
                     <td height=79><p align="center"><font face="Arial, Helvetica, sans-serif" size=2><strong><font color=#000066>Acceso</font></strong></font></p></td>
                  </tr>
                  <tr>
                     <td width=18 height=25>&nbsp;</td>
                     <td width=76><font face="Arial, Helvetica, sans-serif" color=#000066 size=2><strong>Usuario:</strong></font></td>
                     <td width=9>&nbsp;</td>
                     <td width=135><input type="text" maxLength=20 size=15 class="text" name="usuario"></td>
                  </tr>
                  <tr>
                     <td height=27>&nbsp;</td>
                     <td height=27><font face="Arial, Helvetica, sans-serif" color=#000066 size=2><strong>Clave:</strong></font></td>
                     <td height=4>&nbsp;</td>
                     <td height=27><input type="password" maxLength=20 size=15 class="text" name="password"></td>
                  </tr>
                  <tr>
                     <td colSpan=4 height=36>
                        <div align=center>
                           <input type="submit" value="Ingresar" name="Ingresar">
                        </div>
                     </td>
                  </tr>
               </tbody>
            </table>
         </td>
      </form><br/>
      
      <c:if test="${param.msg == 'REGINCOM'}">
         <div align=center>
            <strong><font color="#993300">Debe ingresar el USUARIO y la CLAVE.</font></strong>
         </div>
      </c:if>
    
      <c:if test="${param.msg == 'FAILCARG'}">
         <div align=center>
            <strong><font color="#993300">Falló la carga.</font></strong>
         </div>
      </c:if>
     
      <c:if test="${param.msg == 'NOUSER'}">
         <div align=center>
            <strong><font color="#993300">Usted no es Usuario.</font></strong>
         </div>
      </c:if>
     
      <c:if test="${param.msg == 'BADPASS'}">
         <div align=center>
            <strong><font color="#993300">La contraseña es incorrecta.</font></strong>
         </div>
      </c:if> 
      
      <c:if test="${param.msg == 'NOLOGIN'}">
         <div align=center>
            <strong><font color="#993300">Se ha deslogueado correctamente.</font></strong>
         </div>
      </c:if> 
   </body>
</html>